<#include "../base/basic-page.ftl">
<#include "../common/table.ftl">
<#include "../common/modal.ftl">
<#include "../common/form.ftl">
<#include "../common/pagination.ftl">
<@page_head>

</@page_head>
<@page_body page_title="交易管理" side_active="/admin/trading/record">
    <div class="main-content container-fluid">
        <div class="row">
            <!--Responsive table-->
            <div class="col-sm-12">
                <@table_wrap "资金流水表">
                <@table_tools>
                </@table_tools>
                <@table extra="table-striped table-hover">
                    <@table_head>
                        <th style="width:10%;">会员信息</th>
                        <th style="width:10%;">会员手机号码</th>
                        <th style="width:5%;" class="number">交易金额</th>
                        <th style="width:5%;">交易类型</th>
                        <th style="width:10%;">创建时间</th>
                        <th style="width:10%;"></th>
                    </@table_head>
                    <@table_body>
                    <#list recordData.records as item>
                        <tr>
                            <td class="user-avatar cell-detail user-info">
                                <img class="mt-0 mt-md-2 mt-lg-0" src="/static/img/img-avatar-1.png" alt="Avatar">
                                <span>${(item.userName)!'无昵称'}</span>
                                <span class="cell-detail-description">ID:${item.userId}</span>
                            </td>
                            <td>
                                ${item.number}
                            </td>
                            <td class="number">
                                ￥${item.data.amount?string['0.00']}元
                            </td>
                            <td>
                                ${item.data.typeString}
                            </td>
                            <td class="cell-detail">
                                <span>${item.data.cTime?string('yyyy年MM月dd日')}</span>
                                <span class="cell-detail-description">${item.data.cTime?string('HH:mm')}</span>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </#list>
                    </@table_body>
                </@table>
                    <@pagination recordData.current,recordData.size,recordData.total>
                    </@pagination>
                </@table_wrap>
            </div>
        </div>
    </div>
</@page_body>
<@page_foot>
<script src="/static/lib/parsley/parsley.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function(){
        //initialize the javascript
        var cli = new S7BuyCli();
        cli.init();
        cli.initSettlement();
    });
</script>
</@page_foot>